import request from "@/utils/request";

export function getQualifications(id, str) {
  return request({
    method: "POST",
    url: `/joinservice/join-activity/getNumber/${id}/${str}`,
  }).then((res) => res.data);
}

export function addJoinActivity(form) {
  return request({
    method: "POST",
    url: `/joinservice/join-activity/addJoinActivity`,
    headers: {
      "Content-Type": "application/json",
    },
    data: form,
  }).then((res) => res.data);
}

export function checkActivityStatus(id) {
  return request({
    method: "POST",
    url: `/joinservice/join-activity/checkActivityStatus/${id}`
  }).then((res) => res.data);
}

export function getMyJoinActivity(id) {
  return request({
    method: "POST",
    url: `/joinservice/join-activity/getMyJoinActivity/${id}`
  }).then((res) => res.data);
}
  
export function getMyActivity(page, limit) {
  return request({
    method: "POST",
    url: `/joinservice/join-activity/getMyJoinActivityAndActivity/${page}/${limit}`
  }).then((res) => res.data);
}


export function getCurrentTime() {
  return request({
    method: "GET",
    url: `/joinservice/join-activity/getCurrentTime`
  }).then((res) => res.data);
}


